package com.example.queryexpressdelivery_01.entity;

import java.util.List;

// 定义ProblemFeedback类来表示"problemfeedback"数组中的每个对象


// 定义Trace类来表示"trace"对象


// 定义主类来表示整个JSON对象
public class FeedbackData {
    private Trace trace;
    private String numberfeedback;
    private List<ProblemFeedback> problemfeedback;

    // 构造函数、getter和setter方法

    public FeedbackData() {
        // Gson需要无参构造函数
    }

    public Trace getTrace() {
        return trace;
    }

    public void setTrace(Trace trace) {
        this.trace = trace;
    }

    public String getNumberfeedback() {
        return numberfeedback;
    }

    public void setNumberfeedback(String numberfeedback) {
        this.numberfeedback = numberfeedback;
    }

    public List<ProblemFeedback> getProblemfeedback() {
        return problemfeedback;
    }

    public void setProblemfeedback(List<ProblemFeedback> problemfeedback) {
        this.problemfeedback = problemfeedback;
    }
    public static class ProblemFeedback {
        private String problem;
        private String recover;

        // 构造函数、getter和setter方法（可以自动生成或使用Lombok库）

        public ProblemFeedback() {
            // Gson需要无参构造函数
        }

        public String getProblem() {
            return problem;
        }

        public void setProblem(String problem) {
            this.problem = problem;
        }

        public String getRecover() {
            return recover;
        }

        public void setRecover(String recover) {
            this.recover = recover;
        }
    }
    public static class Trace {
        private String number;
        private String phone;
        private String type;

        // 构造函数、getter和setter方法

        public Trace() {
            // Gson需要无参构造函数
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
